home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-08-31 | 2.5 KB | 94 lines | [TEXT/MPS ] |
- # Makefile for the Caml Light linker.
-
- CAMLCOMP=::camlrun ::camlcomp
- CAMLLINK=::camlrun ::camllink
- INCLUDES=-stdlib ::lib -I ::compiler
- COMPFLAGS=-O fast {INCLUDES}
- LINKFLAGS=-g {INCLUDES}
-
- EXTERNOBJS=config.zo misc.zo opcodes.zo
-
- OBJS=predef.zo prim_c.zo symtable.zo patch.zo tr_const.zo link.zo ∂
- readword.zo version.zo main.zo
-
- all ƒ camllink
-
- camllink ƒ {OBJS}
- {CAMLLINK} {LINKFLAGS} -o camllink stdlib.zo {EXTERNOBJS} {OBJS}
-
- clean ƒ
- Delete -i ≈.z[io] || ;
- Delete -i camllink
-
- scratch ƒ clean
- Delete -i predef.ml prim_c.ml
- Delete -i Makefile.BAK
-
- install ƒ
- Duplicate -y camllink "{LIBDIR}camllink"
-
- prim_c.ml ƒ ::runtime:primitives
- Duplicate -y ::runtime:primitives prim_c.ml
- Open prim_c.ml; Find • prim_c.ml
- Replace -c ∞ /(?≈)®1/ ' "®1";' prim_c.ml
- Replace \;\ '|];;' prim_c.ml
- Find • prim_c.ml
- Echo 'let primitives_table = [|' >prim_c.ml.§
- Close -y prim_c.ml
-
- predef.ml ƒ ::runtime:globals.h ::runtime:fail.h
- Echo '#open "const";;'∂n'let predef_variables = [' >predef.ml
- Open predef.ml;
- Search -q /'/* "'≈'","'≈'" */'/ ::runtime:globals.h >>predef.ml
- Find • predef.ml
- Replace -c ∞ /≈'/* "'(≈)®1'","'(≈)®2'" */'/ '{qual="®1"; id="®2"};' predef.ml
- Clear \;\ predef.ml
- Echo '];;'∂n'let predef_exn = [' >>predef.ml
- Search -q /'/* "'≈'","'≈'",'[0-9]+' */'/ ::runtime:fail.h >>predef.ml
- Find • predef.ml
- Replace -c ∞ /≈'/* "'(≈)®1'","'(≈)®2'",'([0-9]+)®3' */'/ '({qual="®1"; id="®2"}, ®3);' predef.ml
- Clear \;\ predef.ml
- Echo '];;' >>predef.ml
- Close -y predef.ml
-
- .zi ƒ .mli
- {CAMLCOMP} {COMPFLAGS} {Default}.mli
-
- .zo ƒ .ml
- {CAMLCOMP} {COMPFLAGS} {Default}.ml
-
- depend ƒ prim_c.ml predef.ml
- Duplicate -y Makefile Makefile.BAK
- Open Makefile; Find • Makefile
- Clear /•### DO NOT DELETE THIS LINE∂n/Δ:∞ Makefile
- Close -y Makefile
- ::tools:MakeDepend -Caml -I ::compiler: ≈.ml >>Makefile
-
- ### EVERYTHING THAT GOES BEYOND THIS COMMENT IS GENERATED
- ### DO NOT DELETE THIS LINE
- link.zo ƒ ::compiler:config.zi
- link.zo ƒ ::compiler:const.zo
- link.zo ƒ ::compiler:emit_phr.zo
- link.zo ƒ ::compiler:instruct.zo
- link.zo ƒ ::compiler:misc.zo
- link.zo ƒ ::compiler:opcodes.zo
- link.zo ƒ patch.zo
- link.zo ƒ ::compiler:reloc.zo
- link.zo ƒ symtable.zo
- link.zo ƒ tr_const.zo
- main.zo ƒ ::compiler:config.zi
- main.zo ƒ link.zo
- main.zo ƒ ::compiler:misc.zo
- main.zo ƒ readword.zo
- main.zo ƒ symtable.zo
- main.zo ƒ version.zo
- patch.zo ƒ ::compiler:reloc.zo
- patch.zo ƒ symtable.zo
- predef.zo ƒ ::compiler:const.zo
- symtable.zo ƒ ::compiler:const.zo
- symtable.zo ƒ ::compiler:misc.zo
- symtable.zo ƒ predef.zo
- symtable.zo ƒ prim_c.zo
- tr_const.zo ƒ ::compiler:const.zo
- tr_const.zo ƒ symtable.zo
-